package com.qczl.pme.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * sewise配置表
 * 
 * @author SongR
 *
 */
@Entity
@Table(name = "pme_basis_sewise")
public class PMESewise implements Serializable {
	private static final long serialVersionUID = -7526537179494100268L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "sewise_id")
	private Long id;// 编号
	@Column(name = "sewise_name")
	private String name;// 服务器名称
	@Column(name = "sewise_ip")
	private String ip;// ip
	@Column(name = "sewise_loginprot")
	private String prot1;// 登录端口
	@Column(name = "sewise_playprot")
	private String prot2;// 播放端口
	@Column(name = "sewise_takeprot")
	private String prot3;// 截图端口

	@Column(name = "sewise_sourceid")
	private String sourceid;//sourceid
	@OneToMany(mappedBy = "sewise", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
	private Set<PMECamera> cameras;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}


	public String getProt1() {
		return prot1;
	}

	public void setProt1(String prot1) {
		this.prot1 = prot1;
	}

	public String getProt2() {
		return prot2;
	}

	public void setProt2(String prot2) {
		this.prot2 = prot2;
	}

	public String getProt3() {
		return prot3;
	}

	public void setProt3(String prot3) {
		this.prot3 = prot3;
	}

	public Set<PMECamera> getCameras() {
		return cameras;
	}

	public void setCameras(Set<PMECamera> cameras) {
		this.cameras = cameras;
	}

	public String getSourceid() {
		return sourceid;
	}

	public void setSourceid(String sourceid) {
		this.sourceid = sourceid;
	}

}
